(decode_coding): Clear chars_at_source flag when using charbuf.
authorJason Rumney <jasonr@gnu.org>
Sat, 20 Dec 2008 07:59:33 +0000 (07:59 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 20 Dec 2008 07:59:33 +0000 (07:59 +0000)
src/coding.c

index e292f808597d721d243a734ec26ad02cb86ae51a..869a2715640df1fe28057dc304d8a858b1e51422 100644 (file)
@@ -6654,6 +6654,8 @@ decode_coding (coding)
             that the number of data is less than the size of
             coding->charbuf.  */
          coding->charbuf_used = 0;
+         coding->chars_at_source = 0;
+
          while (nbytes-- > 0)
            {
              int c = *src++;